package com.example.card.implemention;

import com.example.card.domain.card.CardClassification;

import java.time.LocalDate;
import java.util.List;

public class InstallmentCardClassification  extends CardClassification {


    private List<NumberPeriod>numberPeriods;
    private LimitConsumptionDate limitConsumptionDate;
    private LocalDate activateDate;
    private double balance;

    public InstallmentCardClassification(LocalDate activateDate, double balance) {
        this.activateDate = activateDate;
        this.balance = balance;
    }

    @Override
    public int calculate(PayCheck pc) {
        return 0;
    }


    LimitConsumptionDate getLimitConsumption() {
        LocalDate now = LocalDate.now();
        LocalDate end = now.plusMonths(1).plusDays(-1);
        return new LimitConsumptionDate(now,end, (int) (balance/12));
    }
}
